#pragma once

#include "WinDirectUIExceptions.h"

namespace WinDirectUI
{
#define ThrowIfFailed(hr) HandleResultException::ThrowIfFailed(hr)
#define ThrowIfFalse(condition, message) if(!(condition)) throw InvalidOperationException(message);

#define PUBLIC public:
#define PRIVATE private:
#define PROTECTED protected:

#define RECTWIDTH(rect) max(rect.right - rect.left, 1)
#define RECTHEIGHT(rect) max(rect.bottom - rect.top, 1)
}
